<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="app.aspx.cs" Inherits="yz_passport.app" %>

Ext.Loader.setConfig({enabled:true});

Ext.application({
	name: 'passport',
	
	appFolder: 'app',
	
	launch: function() {
		Ext.create('passport.main.Main', {
		    companyName: this.getCompanyName(),
		    pageSize: this.getPageSize()
		});
	},
		controllers: [
		'passport.controller.DomainObjectController',
		'passport.controller.SysMenuController',
		'passport.controller.OrganizationController',
		'passport.controller.EmployeeController',
		'passport.controller.DepartmentController',
		'passport.controller.SysUserController',
		'passport.controller.PermissionTypeController'
	],
	getCompanyName: function() {
		return "<%: ViewState["companyName"] %>"
	},
	getPageSize: function() {
		return "<%: ViewState["pageSize"] %>"
	}
});